-- GENERATED SPELL FOR [Withered Bog Lord] --


function spell0_19402(pUnit, Event) --@Osmosis,n/a--
pUnit:FullCastSpellOnTarget(35235,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19402', 5000, 1)
end

function spell1_19402(pUnit, Event) --@War Stomp,n/a--
pUnit:FullCastSpellOnTarget(35238,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19402', 554, 1)
end

function Sorts_19402(pUnit, Event)
local choix_sorts_19402 = math.random(0, 1)
if choix_sorts_19402 == 0 then
pUnit:RegisterEvent('spell0_19402', 1, 1)
end
if choix_sorts_19402 == 1 then
pUnit:RegisterEvent('spell1_19402', 1, 1)
end
end

function mob19402_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19402', math.random(1500, 3000), 1)
end

function mob19402_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19402_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19402_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19402, 1, 'mob19402_Action')
RegisterUnitEvent(19402, 2, 'mob19402_Leave')
RegisterUnitEvent(19402, 3, 'mob19402_Kill')
RegisterUnitEvent(19402, 4, 'mob19402_Die')
